package Code.KeyboardEntry;
//导包，找到Scanner这个类

import java.util.Scanner;

public class ScannerDemo1 {
    public static void main(String[] args) {

        //创建Scanner对象
        Scanner sc =new Scanner(System.in);

        System.out.print("请输入一个整数：");
        //接收数据
        //变量i记录了键盘录入的数据
        int i = sc.nextInt();

        System.out.println(i);
    }
}
